package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public class DataSetCellTypes extends IntegerPair
{
    private static final long serialVersionUID = 1L;
    public static final DataSetCellTypes Normal = new DataSetCellTypes(0,"Normal",null);
    public static final DataSetCellTypes SubTotal = new DataSetCellTypes(1,"Subtotal","sub");
    public static final DataSetCellTypes Sum = new DataSetCellTypes(2,"Summary","summary,s");
    public int hashCode()
    {
        return super.hashCode();
    }

    public static DataSetCellTypes fromName(String str)
    {
        return (DataSetCellTypes) IntegerPair.findConstant(DataSetCellTypes.class,str,Normal);
    }

    public boolean isNormal()
    {
        return this.getId() == Normal.getId();
    }

    public boolean isSubTotal()
    {
        return this.getId() == SubTotal.getId();
    }

    public boolean isSum()
    {
        return this.getId() == Sum.getId();
    }

    private DataSetCellTypes(int n,String strName,String str)
    {
        super(n,strName,str);
    }
}
